package com.gxa.autoparts.admin.service.impl;

import com.gxa.autoparts.admin.mapper.KeyWordsMapper;
import com.gxa.autoparts.admin.service.KeyWordsService;
import com.gxa.autoparts.core.pojo.KeyWords;
import com.gxa.autoparts.core.service.impl.BaseServiceImpl;
import com.sun.org.apache.bcel.internal.generic.RETURN;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("keyWordsService")
public class KeyWordsServiceImpl extends BaseServiceImpl<KeyWords> implements KeyWordsService {
    @Resource
    KeyWordsMapper keyWordsMapper;
    @Override
    public List<KeyWords> selectKeyWords() {
        List<KeyWords> keyWords = keyWordsMapper.selectKeyWords(1000L);
        return  keyWords;
    }

    @Override
    public KeyWords deleteKeyWords(String name) {
        KeyWords keyWords = keyWordsMapper.deleteKeyWords(name);
        return keyWords;
    }
}
